package com.dzl.goods.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.goods.pojo.WelfareGoodsLabel;
import com.dzl.goods.pojo.WelfareGoodsLabelRel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (WelfareGoodsAndLabel)表数据库访问层
 * @author wangjian
 * @date 2021-08-02 10:12:07
 */
@Repository
public interface WelfareGoodsLabelRelMapper extends BaseMapper<WelfareGoodsLabelRel> {

    /**
     * 获取商品标签
     * @author ChenLong
     * @date 2021-08-03 15:55:07
     * @param goodsId 商品Id
     * @param labelNum 查询商品标签数量
     * @return java.util.List
     **/
    List<WelfareGoodsLabel> selectGoodsLabelListByGoodsId(@Param("goodsId") Integer goodsId,@Param("labelNum") Integer labelNum);

    /**
     * 删除商品标签关联商品
     * @author liuguanjun
     * @date 2022-02-10 11:02:07
     * @param labelId 标签Id
     * @param goodsIds 查询商品标签数量
     **/
    int deleteGoodsLabelRel(@Param("labelId") Integer labelId,@Param("goodsIds") String goodsIds);
}